OC So before we start creating our games and roadblocks, I just want to quickly show you how you can
access the services and any objects in your workspace since services are going to be really important
because you're going to use a lot of functions and properties in them.
So I just want to show you quickly how to do that before we move on to the other lectures in the course.
So there's this key word here in Roblox.
It's called Game.
And it holds all of the game services.
It holds all the properties or holds everything in your game.
It's like the big overarching table that holds everything in your game.
It refers to everything and you can index it, of course, and you can get access to all the services.
There's events in here, properties, all that good stuff.
And you can just type in the name of it.
So for example, if I wanted to get access to like the lighting service, I could just type lighting.
But there is a small issue.
Doing it this way is that if I ever changed the name of leading.
So for example, if I change it to like l for some reason now the game when I type in lighting, it's
not going to know what I'm referring to.
So a better way to do it is that there's this function in this table.
It's called get service and you can type in the class name instead of the name of the instance of the
class.
So I can do lighting and it will get the lighting the lighting service for me, no matter what its name
is.
This is just a better way of doing it using this get service function.
So no matter what I name these services in my game, I will always be able to get them to get the workspace.
You don't want to do get service workspace that's a little little involved, especially when there's
an easier way to do it.
There's a keyword that's just workspace, and I have access to everything in your workspace so I can
access all the properties of the workspace and then I can access any of the children of the workspace.
So for example, I can access the base plate by typing base plate, and then I can access all the properties
of the base plate as well as any of the children of the base plate like this texture.
So I can type texture, and then I have access to all the properties of the texture.
So let's just quickly to show you how you can access stuff in your game by using the dot operator and
using the get service function to grab any services in your game.